package com.shunli.cterminal.model.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Schema(description = "管理后台 - ab实验分流数据新增/修改 Request VO")
@Data
public class ExpUserSaveReq {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20586")
    private Long id;

    @Schema(description = "产品标示", requiredMode = Schema.RequiredMode.REQUIRED, example = "14423")
    //@NotEmpty(message = "产品标示不能为空")
    private String appId;

    @Schema(description = "实验ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "实验ID不能为空")
    private Long expId;

    @Schema(description = "实验标识", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotEmpty(message = "实验标识不能为空")
    private String expCode;

    @Schema(description = "实验分组", requiredMode = Schema.RequiredMode.REQUIRED, example = "30157")
    //@NotNull(message = "实验分组不能为空")
    private Long vid;

    @Schema(description = "实验分组参数")
    private String expGroupParam;

    @Schema(description = "分流标识类型 uid、oaid", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    //@NotEmpty(message = "分流标识类型 uid、oaid不能为空")
    private String idType;

    @Schema(description = "分流id", requiredMode = Schema.RequiredMode.REQUIRED)
    //@NotEmpty(message = "分流id不能为空")
    private String idValue;

    @Schema(description = "业务日期")
    private LocalDate pdate;

}